var app = new Vue(
    {
el:"#app",
data:{
    city:'',
    weatherList:[]
},
methods:{
    searchWeather:function(){
        var that = this;    
        axios.get(`http://wthrcdn.etouch.cn/weather_mini?city=${that.city}`)
        .then(function(response){                   						
            that.weatherList = response.data.data.forecast; 
            console.log(that.weatherList);                      
          },function (err) { })  
    },
    changeCity:function(city){
      this.city = city;
      this.searchWeather();
    }
}


    }
)